<?php
/*
 * Copyright (c) 2022.  Liuhongbin All rights reserved.
 * @domain http://dkyx.cc
 * @author liuhongbin <514660094@qq.com>
 */

namespace hiduoke\services\douyin;


class DouyinScopes
{
    public $all_scopes = array(
        [
            'name' => "视频权限",
            'auth' => [
                [
                    "name"  => "分享给抖音好友/群",
                    "scope" => "im.share",
                    "desc"  => "支持从第三方APP分享单图片或链接给抖音好友/群",
                ],
                [
                    "name"  => "发布内容至抖音：APP场景",
                    "scope" => "aweme.share",
                    "desc"  => "第三方APP的内容可以分享发布到抖音，且可携带指定话题、小程序等内容",
                ],
                [
                    "name"  => "发布内容至抖音：H5场景",
                    "scope" => "h5.share",
                    "desc"  => "支持H5场景的内容可以分享发布到抖音，且可携带指定话题、小程序等内容",
                ],
                [
                    "name"  => "使用抖音拍摄器",
                    "scope" => "aweme.capture",
                    "desc"  => "调起抖音拍摄器SDK进行视频拍摄，完成拍摄后分享视频进抖音",
                ],
                [
                    "name"  => "视频查询",
                    "scope" => ["video.data", "video.list"],
                    "desc"  => "可通过接口进行视频数据的查询",
                ],
                [
                    "name"  => "关键词视频管理",
                    "scope" => ["video.search", "video.search.comment"],
                    "desc"  => "包含通过关键词获取抖音视频及该视频下评论，并进行回复的能力",
                ]
            ]
        ],
        [
            'name' => "用户权限",
            'auth' => [
                [
                    "name"  => "授权登录与用户基础信息",
                    "scope" => "user_info",
                    "desc"  => "用抖音账号登录第三方平台，获得用户在抖音上的公开信息",
                ],
                [
                    "name"  => "关注和粉丝列表",
                    "scope" => ["following.list", "fans.list", "fans.check"],
                    "desc"  => "搜索用户并获取用户公开信息和关注列表",
                ],
                [
                    "name"  => "授权动态续期",
                    "scope" => "renew_refresh_token",
                    "desc"  => "refresh_token支持动态续期，每次续期+30天，续期次数上限为5次",
                ],
                [
                    "name"  => "获取用户手机号",
                    "scope" => ["mobile_alert", "mobile"],
                    "desc"  => "用抖音帐号登录第三方平台，获得用户在抖音上的手机号码，mobile为一步授权账号和手机号，mobile_alert为弹窗授权手机号",
                ],
            ]
        ],
        [
            'name' => "互动权限",
            'auth' => [
                [
                    "name"  => "评论管理（普通用户）",
                    "scope" => "item.comment",
                    "desc"  => "获取并管理评论",
                ]
            ]
        ],
        [
            'name' => "数据权限",
            'auth' => [
                [
                    "name"  => "外部用户数据",
                    "scope" => "data.external.user",
                    "desc"  => "用户授权后，该接口可用于查询用户的获赞、评论、分享，主页访问等相关数据",
                ],
                [
                    "name"  => "视频数据",
                    "scope" => "data.external.item",
                    "desc"  => "用户授权后，该接口可用于查询作品的获赞，评论，分享等相关数据",
                ],
                [
                    "name"  => "粉丝画像数据",
                    "scope" => "fans.data",
                    "desc"  => "用户授权后，该接口可用于获取用户粉丝画像数据",
                ],
                [
                    "name"  => "抖音影视综榜单数据",
                    "scope" => "discovery.ent",
                    "desc"  => "获取抖音电影榜，电视剧榜以及综艺榜",
                ],
                [
                    "name"  => "星图数据",
                    "scope" => ["star_top_score_display", "star_tops", "star_author_score_display"],
                    "desc"  => "包含星图达人与达人对应各指数评估分，以及星图6大热门维度下的达人榜单",
                ],
                [
                    "name"  => "SDK分享视频数据",
                    "scope" => "data.external.sdk_share",
                    "desc"  => "获取通过分享SDK分享视频数据",
                ],
                [
                    "name"  => "抖音热点【限时免费】",
                    "scope" => "hotsearch",
                    "desc"  => "获取抖音热门内容",
                ],
                [
                    "name"  => "热门视频数据【限时免费】",
                    "scope" => "data.external.billboard_hot_video",
                    "desc"  => "获取抖音热门视频数据",
                ],
                [
                    "name"  => "粉丝喜好数据（粉丝喜好、粉丝热评）",
                    "scope" => "data.external.fans_favourite",
                    "desc"  => "用户授权后，该接口可用于查询用户粉丝喜好、粉丝热评等相关数据",
                ],
                [
                    "name"  => "粉丝来源数据",
                    "scope" => "data.external.fans_source",
                    "desc"  => "用户授权后，该接口可用于查询用户的粉丝来源分布占比数据",
                ],
                [
                    "name"  => "直播榜单数据【限时免费】",
                    "scope" => "data.external.billboard_live",
                    "desc"  => "获取抖音直播榜单数据",
                ],
                [
                    "name"  => "音乐榜单数据【限时免费】",
                    "scope" => "data.external.billboard_music",
                    "desc"  => "获取抖音音乐榜单数据",
                ],
                [
                    "name"  => "道具榜单数据【限时免费】",
                    "scope" => "data.external.billboard_prop",
                    "desc"  => "获取抖音道具榜单数据",
                ],
                [
                    "name"  => "话题榜单数据【限时免费】",
                    "scope" => "data.external.billboard_topic",
                    "desc"  => "获取抖音话题榜单数据",
                ],
                [
                    "name"  => "达人榜单数据【限时免费】",
                    "scope" => [
                        "data.external.billboard_game",
                        "data.external.billboard_drama",
                        "data.external.billboard_car",
                        "data.external.billboard_amusement",
                        "data.external.billboard_cospa",
                        "data.external.billboard_food",
                        "data.external.billboard_travel",
                        "data.external.billboard_stars",
                        "data.external.billboard_sport"
                    ],
                    "desc"  => "可获取抖音（搞笑、游戏、美食、体育、娱乐明星、剧情、汽车、旅游、二次元）达人榜单数据",
                ],
            ]
        ],
        [
            'name' => "特殊权限",
            'auth' => [
                [
                    "name"  => "查询POI地点信息",
                    "scope" => "poi.search",
                    "desc"  => "用于查询POI信息",
                ],
                [
                    "name"  => "获取openTicket",
                    "scope" => "open.get.ticket",
                    "desc"  => "用于h5链接拉起抖音发布器分享视频时对开发者身份进行验签",
                ],
                [
                    "name"  => "一次性订阅消息",
                    "scope" => "message.once.send",
                    "desc"  => "一次性订阅消息用于服务环节的通知问题。用户自主订阅后，开发者可不限时间地下发一条对应的服务消息；每条消息可单独订阅或退订",
                ],
                [
                    "name"  => "CPS佣金设置与查询",
                    "scope" => "poi.cps.common",
                    "desc"  => "CPS佣金设置与查询",
                ],
                [
                    "name"  => "查询小程序挂载权限",
                    "scope" => "micapp.is_legal",
                    "desc"  => "提供一个接口给开发者校验小程序appid是否可挂载到短视频",
                ],
                [
                    "name"  => "服务市场服务订购相关",
                    "scope" => "market.service.user",
                    "desc"  => "服务市场服务订购相关",
                ],
                [
                    "name"  => "增量授权",
                    "scope" => "incremental_authorization",
                    "desc"  => "请求用户新增授权项时，仅需请求当前权限，且历史已授权项同步更新有效期",
                ],
            ]
        ],
        [
            'name' => "JSBridge",
            'auth' => [
                [
                    "name"  => "签名ticket",
                    "scope" => "js.ticket",
                    "desc"  => "获取签名ticket",
                ],
                [
                    "name"  => "跳转用户授权页面",
                    "scope" => "jsb.open.auth",
                    "desc"  => "跳转到原生授权页面",
                ],
                [
                    "name"  => "唤起用户授权界面",
                    "scope" => "jsb.open.showAuth",
                    "desc"  => "唤起原生半屏授权界面",
                ],
                [
                    "name"  => "用原生能力后台播放音乐",
                    "scope" => "jsb.open.music",
                    "desc"  => "用原生能力后台播放音乐",
                ],
                [
                    "name"  => "控制webview全屏手势",
                    "scope" => "jsb.app.webviewControl",
                    "desc"  => "控制webview全屏手势",
                ],
                [
                    "name"  => "在抖音端内收藏抖音music clip",
                    "scope" => "jsb.app.musicCollect",
                    "desc"  => "在抖音端内收藏抖音music clip",
                ],
                [
                    "name"  => "抖音端内查询音乐收藏状态",
                    "scope" => "jsb.app.musicCollectStatus",
                    "desc"  => "抖音端内查询音乐收藏状态",
                ],
            ]
        ],
    );


}
